package com.xxx.service_feign.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * created by CaiBaoHong at 2018/9/19 23:39<br>
 */
@FeignClient(value = "service-hi",fallback = HelloServiceFallback.class)
public interface HelloService {

    @GetMapping("/hi")
    public String sayHiByFeign(@RequestParam("name")String name);
}
